<%--
  Created by IntelliJ IDEA.
  User: sherlockholmes
  Date: 22/04/2020
  Time: 3:26 AM
  To change this template use File | Settings | File Templates.
--%>

<%@ page contentType="text/html; charset=utf-8" language="java" isELIgnored="false" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>

<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>SpringMVC-SSS</title>

</head>
<body>
<div>
    <a href="/addOrUpdate">新增</a>
</div>
<table width="80%" border="1" align="center">
    <tr>
        <th>id</th>
        <th>姓名</th>
        <th>地址</th>
        <th>电话</th>
        <th>操作</th>
    </tr>
    <c:forEach items="${list}" var="e">
        <tr>
            <td>${e.id}</td>
            <td>${e.name}</td>
            <td>${e.address}</td>
            <td>${e.phone}</td>
            <td>
                <a href="/deleteOne?id=${e.id}">删除</a>
                <a href="/addOrUpdate?id=${e.id}">编辑</a>
            </td>
        </tr>
    </c:forEach>
</table>
</body>
</html>
